package com.tanhua.system.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 活跃用户表
 *  记录每天活跃用户和使用app的时间
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "active_user")
public class ActiveUser implements java.io.Serializable{
    private static final long serialVersionUID = 7079178416317502524L;
    private ObjectId id;
    @Indexed
    private Long userId; // 用户id
    private Long loginDate;//登陆日期,例: 20210613
    private Long firstLoginTime;//记录该用户第一次登录时间
    private Long operateTime;//使用时长
}